// 定义 store
import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    orderBy: 0,
  },
  mutations: {
    setorderBy(state, newVal) {
      state.orderBy = newVal;
    },
  },
});

export default store;
